#!/bin/bash
systemctl stop firewalld
systemctl disable firewalld
echo "firewalld"
sed -i 's/enforcing/disabled/' /etc/selinux/config
setenforce 0
echo "close selinux"
swapoff -a
sed -ri 's/.*swap.*/#&/' /etc/fstab
echo "close swap"
cat > /etc/sysctl.d/k8s.conf << EOF
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
sysctl --system
echo "ipv4 iptables"
yum install ntpdate -y
ntpdate time.windows.com
echo "date update"

